package com.tutu.service.impl;

import com.tutu.service.UserService;

/**
 * @Program: Spring_New
 * @Description:
 * @Author: JK.TuTu
 * @Create: 2022-09-15
 **/
public class UserServiceImpl implements UserService {
    @Override
    public void add(int a,int b) {
        System.out.println(a/b);
        System.out.println("增加用户");
    }

    @Override
    public void delete(int id) {
        System.out.println("删除用户");
    }

    @Override
    public Integer update(String name) {
        System.out.println("更新用户..");
        return 1;
    }

    @Override
    public String search(int num) {
        System.out.println("正在查询用户...");
        return num < 10 ? "查询成功":"查询失败";
    }
}
